package com.example.project.utils;

public class UserContextUtil {
    private static final ThreadLocal<String> USER_HOLDER = new ThreadLocal<>();

    public static void setUser(String username) {
        USER_HOLDER.set(username);
    }

    public static String getUser() {
        return USER_HOLDER.get();
    }

    public static void clear() {
        USER_HOLDER.remove();
    }
}